|
|
 |
|
|
|
|
Private Sub cboStates_Click() If cboStates.Tag <> cboStates.Text Then cmdSave.Enabled = True
cboStates.Tag = cboStates.Text
End If
End Sub |
|
|
|
|
|
|
|
|
This solves the problem of the user just clicking to open the list but not actually changing the value in the combo box. |
|
|
|
|
|
|
|
|
If you want to format the data coming from a data control, you can use the new DataFormat property on the text boxes. When you click the DataFormat property, a dialog box appears that allows you to choose what type of formatting you want to apply to the data. (See Figures 23.4 and 23.5 for examples of two of these formatting options.) |
|
|
|
|
|
|
|
|
Examples Filename: DataFormat.frm |
|
|
|
|
|
|
|
|
Figure 23.4
The DataFormat propertys currency formats. |
|
|
|
|
|
|
|
|
When you choose the currency format, you can change the number of decimal places, the symbol type to use, and how to display negative numbers. |
|
|
|
|
|